SimpleSearch v2.2

What it does

SimpleSearch searches text files for a given string, producing a list of the files where the string is found.  Doubleclicking on an item in that list will bring up the appropriate application for that file. The search is conducted on files in the 'search dir' and that directory's subdirectories (and those 
subdirectories subdirectories, etc.).  Only files with MIME types that are checked in the 'MIME Types' menu (any 'text/*' MIME type(s)) are searched.  
 
For example, it can search: 
 
    - the BeBook or Be documentation. 
    - the Metrowerks C++ documentation. 
    - the 'sample code' source files. 
    - the Be header files.
    - the email folders.

If the 'Search by Names, Not Contents' checkbox is checked, then SimpleSearch will search only the names of the files.  In addition, it will search all file names regardless of file types.

Saving and Restoring Searches

You can save your search parameters with the Save As.. menu item.  If you make changes to a search, use the Save option to write over the old values.  SimpleSearch remembers the last saved/restored search for next time.  

You can restore old searches in a number of ways: 
	- by selecting File->Open and picking a search
	- from the 'Restore' menu (which scans the directory of the last saved/restored search)
	- by doubleclicking on a search 
	- dragging the search onto the SimpleSearch window or icon 
	- opening the search from the BeBar.

Drag and Drop

- You can drag a file onto the SimpleSearch window to start searching in that file's parent directory.  Dropping a file on the SimpleSearch window also sets the MIME type to that of the dropped file.  For instance, dropping the "/boot/home/Documents/be_book/index.html" file on the SimpleSearch window will set the 'Search Dir' to "/boot/home/Documents/be_book", and will check 'text/html' in the 'MIME Types'
menu.

- You can drop any file with a 'text/*' MIME type onto the SimpleSearch icon.

- You can also drop directories onto the SimpleSearch window or icon.

- Opening files with the 'Open...' menu item is the same as dragging them onto the window.

SimpleSearch is Default

This menu item is checked if the file in the field next to the 'File:' button is set to have SimpleSearch as its preferred application.  If this is the case, doubleclicking on the file in the Tracker will bring up SimpleSearch, initialized to start searching in that file's parent directory.  Selecting the 'SimpleSearch is Default' menu item toggles this setting for the file. 

For instance, if an application brings up a particular html file when you select its help menu item, you can employ the 'SimpleSearch is Default' feature to bring up SimpleSearch instead.  Unless, of course, the application explicitly brings up NetPositive...

Use the 'File:' button to open a file with its regular application.

Tracker Addon

To use SimpleSearch as a tracker addon, just put a copy of it in this directory:

/boot/home/config/add-ons/Tracker/

It Doesn't Work.

If there is a problem with SimpleSearch, please let me know!   The version released with this document is only a beta.  Send me instructions on how to duplicate the error, and I'll try to fix it.

Future Features

	- more sophisticated searches - multiple strings, case sensitive, etc.
	- grid view
	- sorting the result set
	- etc.

If there is sufficient interest, I'll try to implement the above, or other suggestions.  If you want to see these features, email me!

Comments, Questions, Bugs?

Contact me at bburdette@knology.net.  If no reply is forthcoming, check BeWare for an updated email address. 

Your comments and feedback are most welcome!  Please let me know how you like the program, what features you'd like to see, if you've found it useful, etc.  


